package com.yc.cloud.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author Kent Jiang
 * @Date 2020/9/24 13:44
 * @Version 1.0
 */
@Data
public class BaseEntityVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", hidden = true)
    private Long id;
    /**
     * 创建者
     */
    @Schema(description="创建者ID")
    private Long createBy;

    @Schema(description="创建者名称")
    private String createName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description="创建时间")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @Schema(description="更新者ID")
    private Long updateBy;

    @Schema(description="更新者名称")
    private String updateName;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description="更新时间")
    private LocalDateTime updateTime;

}
